-- GENERATED SPELL FOR [Frayer Protector] --


function spell0_19953(pUnit, Event) --@Shoot Thorns,n/a--
pUnit:FullCastSpellOnTarget(34745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19953', 2000, 1)
end

function Sorts_19953(pUnit, Event)
local choix_sorts_19953 = math.random(0, 0)
if choix_sorts_19953 == 0 then
pUnit:RegisterEvent('spell0_19953', 1, 1)
end
end

function mob19953_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19953', math.random(1500, 3000), 1)
end

function mob19953_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19953_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19953_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19953, 1, 'mob19953_Action')
RegisterUnitEvent(19953, 2, 'mob19953_Leave')
RegisterUnitEvent(19953, 3, 'mob19953_Kill')
RegisterUnitEvent(19953, 4, 'mob19953_Die')
